package cn.edu.zzuli.nothinglink.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LiveInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "live_id", type = IdType.AUTO)
    private Integer liveId;

    /**
     * 随机生成uuid的直播号
     */
    private String liveUuid;

    /**
     * 直播间的名称,可更改
     */
    private String liveName;

    /**
     * obs推流的url
     */
    private String livePushUrl;

    /**
     * obs推流的密钥，也是拉流的密钥
     */
    private String liveSecret;

    /**
     * 拉流的url
     */
    private String livePullUrl;

    /**
     * 所属教师id
     */
    private Integer liveBelongTeaId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    private Integer deleted;


}
